/*
* $Id: ColumnDialog.h 2 2009-12-23 13:58:02Z volok-aleksej@yandex.ru $
*
* Copyright 2008-2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _NEW_COLUMN_DIALOG_H_
#define _NEW_COLUMN_DIALOG_H_

#include "Database/Tables/UserFieldsTable.h"

class CColumnDialog : public CDialog
{
	CUserFieldsTable::content m_Column;
	std::tstring m_strOperation;
	CComboBox m_TypeCombo;
	CEdit m_NameEdit;
	bool m_bChange;
private:
	int GetType(const std::tstring& strType);
protected:
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	virtual void DoDataExchange(CDataExchange* pDX);
	DECLARE_MESSAGE_MAP();
	afx_msg void OnEditChange();
public:
	CColumnDialog(const std::tstring& strOperation);
	virtual ~CColumnDialog();

	bool WindowCreate();
	CUserFieldsTable::content GetColumn();
};

#endif /*_NEW_COLUMN_DIALOG_H_*/